if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_ChiNhanh_GetByMaChiNhanh]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sp_ChiNhanh_GetByMaChiNhanh]
GO

CREATE PROC [sp_ChiNhanh_GetByMaChiNhanh]
	@Ma_chi_nhanh		int
	AS
		BEGIN
			SELECT ID,Ten,Ghi_chu,Dia_chi,Tel,Ma_khu_vuc,Truong_chi_nhanh,Ngay_cap_nhat_cuoi
			FROM ChiNhanh
			WHERE ID = @Ma_chi_nhanh
		END